package com.glsc.ngateway.flowable.common;

import cn.hutool.core.date.DateUtil;
import lombok.Data;
import lombok.ToString;

import java.util.Date;

@Data
@ToString
public class TaskComment implements Comparable {

    private Date time;
    private String taskId;
    private String taskKey;
    private String taskName;
    private String userId;

    @Override
    public int compareTo(Object o) {
        TaskComment o1 = (TaskComment) o;
        return DateUtil.compare(o1.getTime(), this.getTime());
    }
}
